package com.example.LifeCycle.InitializingBean;

import com.example.LifeCycle.Bean.BeanConfigeration;
import com.example.LifeCycle.commons.Person;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Description TODO
 * @Date 2024/5/15 11:03
 * @Created by houjunfeng
 */
public class InitializingBeanTest {
    @Test
    public void test01(){
        AnnotationConfigApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext(InitializingBeanConfigeration.class);
        System.out.println(annotationConfigApplicationContext);
        annotationConfigApplicationContext.close();
    }
}
